import { createApp } from 'vue'
import App from './App.vue'
import router from './router' //引入路由
import { createPinia } from 'pinia'
import 'element-plus/dist/index.css'
//注册图标
import 'virtual:svg-icons-register'
//注册权限指令
import { regAllDirectives } from './directives';

const app = createApp(App)
const pinia = createPinia()
regAllDirectives(app); //注册所有指令
app.use(router) //注册路由
app.use(pinia) //注册pinia
app.mount('#app')  //挂载


//不用链式路由
//createApp(App).mount('#app')
